<?php

namespace IDock\Insurance\QHIC\Request;

use IDock\Insurance\QHIC\Request\AllQHICRequest;
use IDock\Insurance\QHIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllQHICRequest
{
    public $requestType = 'VHL0003';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询';

    /*** @var  VehicleModelVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $modelName = str_replace("牌",'',$this->visitor->vehicleModel);
        return [
            'CModelNme' => $modelName,
            'CFrmNo' => $this->visitor->vin,
            'CPageIndex' => '1',
            'CPageSize' => '15',
            'CAgentNo' => $this->visitor->argc['CAgentNo'] ?? '',//代理员id
            'CBrkrCde' => $this->visitor->argc['CBrkrCde'] ?? '',//代理人编码
        ];
    }
}
